<template>
  <body>
    <!--头部-->
    <div class="main">
      <div class="main-content">
        <div class="container-fluid">
          <div class="headarea">
            <div class="headarea-1">
              <span>挂号日期：</span>
              <el-date-picker
                v-model="value1"
                type="daterange"
                range-separator="——"
                start-placeholder=""
                end-placeholder=""
                :size="size"
              />
              <span>医生姓名：</span>
              <el-input
                v-model="input"
                class="input-1"
                placeholder="请输入姓名"
              />
            </div>
            <el-button type="primary">查询</el-button>
            <el-button type="primary" class="btn">导出 </el-button>
          </div>
        </div>
      </div>
    </div>
    <!--表格-->
    <el-table :data="tableData" style="width: 100%">
      <el-table-column label="医生" width="180">
        <template #default="scope">
          <div style="display: flex; align-items: center">
            <span style="margin-left: 10px">{{ scope.row.registerId }}</span>
          </div>
        </template>
      </el-table-column>
      <el-table-column label="处方数量" width="180">
        <template #default="scope">
          <el-popover
            effect="light"
            trigger="hover"
            placement="top"
            width="auto"
          >
            <template #reference>
              {{ scope.row.registerMoney }}
            </template>
          </el-popover>
        </template>
      </el-table-column>
      <el-table-column label="中药处方" width="180">
        <template #default="scope">
          <el-popover
            effect="light"
            trigger="hover"
            placement="top"
            width="auto"
          >
            <template #reference>
              {{ scope.row.departmentName }}
            </template>
          </el-popover>
        </template>
      </el-table-column>
      <el-table-column label="附加费用" width="180">
        <template #default="scope">
          <el-popover
            effect="light"
            trigger="hover"
            placement="top"
            width="auto"
          >
            <template #reference>
              {{ scope.row.doctorName }}
            </template>
          </el-popover>
        </template>
      </el-table-column>
      <el-table-column label="检查项目" width="180">
        <template #default="scope">
          <el-popover
            effect="light"
            trigger="hover"
            placement="top"
            width="auto"
          >
            <template #reference>
              {{ scope.row.patientName }}
            </template>
          </el-popover>
        </template>
      </el-table-column>
      <el-table-column label="退费金额" width="180">
        <template #default="scope">
          <el-popover
            effect="light"
            trigger="hover"
            placement="top"
            width="auto"
          >
            <template #reference>
              {{ scope.row.registerTime }}
            </template>
          </el-popover>
        </template>
      </el-table-column>
      <el-table-column label="实收金额" width="180">
        <template #default="scope">
          <el-popover
            effect="light"
            trigger="hover"
            placement="top"
            width="auto"
          >
            <template #reference>
              {{ scope.row.money }}
            </template>
          </el-popover>
        </template>
      </el-table-column>
    </el-table>
  </body>
</template>

<script lang="ts" setup>
import { ref } from "vue";
const value1 = ref("");
const tableData  = [
    {
        registerId: '张三',
        registerMoney: 10,
        departmentName: 24,
        doctorName: 11,
        patientName: "200",
        registerTime: "300",
        money:600
        
    },
    {
      registerId: '洪三',
        registerMoney: 10,
        departmentName: 24,
        doctorName: 11,
        patientName: "200",
        registerTime: "300",
       
    },
    {
      registerId: '冯五',
        registerMoney: 10,
        departmentName: 24,
        doctorName: 11,
        patientName: "200",
        registerTime: "300",
      
    },
    {
      registerId: '李大',
        registerMoney: 10,
        departmentName: 24,
        doctorName: 11,
        patientName: "200",
        registerTime: "300",
    },
]
</script>

<style scoped>
.example-pagination-block {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
body {
  font-family: "sans-serif";
  font-size: 15px;
  color: #676a6d;
}
.main-content {
  padding: 28px 10px;
}
.container-fluid {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
.btn {
  float: right;
  margin-top: 5px;
}
.headarea {
  padding: 10px;
  margin-bottom: 20px !important;
  font-family: "sans-serif";
  font-size: 10px;
  color: #676a6d;
  margin: 0 0 20px;
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
}
.headarea-1 {
  position: relative;
  display: inline-block;
  margin-right: 10px !important;
}
.input-1 {
  width: auto;
  display: inline-block;
  /* border-radius: 2px; */
  /* border-color: #eaeaea;
      background-color: #fcfcfc; */
  padding: 6px 12px;
  font-size: 10px;
  /* line-height: 1; */
  color: #555;
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}
</style>